import request from '../utils/request';
//查询登录用户
export const getUserData = query => {
    return request({
        url: '/user/getuser',
        method: 'get'
    });
};
//登录
export const login = query => {
    return request({
        url: '/user/longin',
        method: 'post',
        params: query
    });
};
//获取玩家
export const getPlayer = query => {
    return request({
        url: '/player/getPlayer?id='+query,
        method: 'get',
    });
};
//设置玩家
export const setPlayer = query => {
    return request({
        url: '/player/setPlayer',
        method: 'post',
        data:query
    });
};